﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.Dto.Inv
{
    /// <summary>
    /// 其他出库查询和入库明细表的公共类
    /// </summary>
    public class othwrSelectDto
    {
        public int Othwr_id { get; set; }
        /// <summary>
        /// 入库类型
        /// </summary>
        public string othwr_type { get; set; }

        /// <summary>
        /// 入库单号
        /// </summary>
        public string othwr_code { get; set; }
        /// <summary>
        /// 仓库编码
        /// </summary>
        public string warehouse_code { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string warehouse_name { get; set; }


        public string othwr_audit_statua { get; set; }


        public int Othwr_status { get; set; }


        public string othwr_audit_opinion { get; set; }

        /// <summary>
        /// 库区编码
        /// </summary>
        public string zone_code { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string zone_name { get; set; }

        /// <summary>
        /// 仓库保管员
        /// </summary>
        public string Othwr_wkeep { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? Othwr_time { get; set; }


        //关联单号
        public string othwr_code_Associated { get; set; }

        // 明细字段（可选）
        public List<OthwrDetailInfo> Details { get; set; }

        //明细
        public class OthwrDetailInfo
        {
            //明细表
            /// <summary>
            /// 入库单ID
            /// </summary>
            public int othwr_id { get; set; }

            /// <summary>
            /// 产品名称
            /// </summary>
            public string pro_name { get; set; }

            /// <summary>
            /// 产品编码
            /// </summary>
            public string pro_code { get; set; }

            /// <summary>
            /// 品牌
            /// </summary>
            public string pro_brand { get; set; }

            /// <summary>
            /// 单位ID（单位信息关联）
            /// </summary>
            public string unitmeas_id { get; set; }

            /// <summary>
            /// 入库数量
            /// </summary>
            public decimal othwrproddtl_numder { get; set; }

            /// <summary>
            /// 入库库位编号
            /// </summary>
            public string location_code { get; set; }
        

            public string stock_entry_no { get; set; }

            /// <summary>
            /// 规格型号
            /// </summary>
            public string pro_model { get; set; }


            public string Vendor_code { get; set; }//供应商编码

            public string Vendor_name { get; set; } //供应商昵称
        }
    }
}
